package edu.hawaii.duedates.library;

import static org.junit.Assert.*;
import org.junit.Test;


/**
 * This will test the coverage of the LibraryType class.
 * 
 * @author Robin E. Raqueno and Ronn Reeves
 *
 */
public class TestLibraryType {

  /**
   * Testing the methods of the LibraryType class.
   */
  @Test
  public void testCreateLibraryType() {
    LibraryType libType = new LibraryType();
    libType.setDateColumn("Date");
    libType.setErrorMessage("Error Message");
    libType.setName("Name");
    libType.setCode("Code");
    libType.setFormName("Form");
    libType.setLink("Link");
    libType.setNoBorrowedItemsMessage("Empty");
    libType.setPasswordFieldName("password");
    libType.setSiteUrl("www.google.com");
    libType.setSummary("Testing");
    libType.setTitleColumn("Title");
    libType.setUserFieldName("user");
    
    assertEquals("getDateColumn Failed", libType.getDateColumn(), "Date");
    assertEquals("getErrorMessage Failed", libType.getErrorMessage(), "Error Message");
    assertEquals("getName Failed", libType.getName(), "Name");
    assertEquals("getCode Failed", libType.getCode(), "Code");
    assertEquals("getFormName Failed", libType.getFormName(), "Form");
    assertEquals("getLink Failed", libType.getLink(), "Link");
    assertEquals("getNoBorrowedItemsMessage Failed", libType.getNoBorrowedItemsMessage(), "Empty");
    assertEquals("getPasswordFieldName Failed", libType.getPasswordFieldName(), "password");
    assertEquals("getSiteUrl Failed", libType.getSiteUrl(), "www.google.com");
    assertEquals("getSummary Failed", libType.getSummary(), "Testing");
    assertEquals("getTitleColumn Failed", libType.getTitleColumn(), "Title");
    assertEquals("getUserFieldName Failed", libType.getUserFieldName(), "user");
    
  }
}
